import styled from 'styled-components'

export const HomeWrapper = styled.div`
  overflow: hidden;
  width: 960px;
  margin: 0 auto;
`

export const HomeLeft = styled.div`
  width: 625px;
  margin-left: 15px;
  padding-top: 30px;
  float: left;
  .banner-img{
    width: 625px;
    height: 270px;
  }
  
`
export const HomeRight = styled.div`
  width: 240px;
  float: right;
`

export const TopicWrapper = styled.div`
  padding: 20px 0 10px 0;
  overflow: hidden;
  margin-left: -10px;
  border-bottom: 1px solid #dcdcdc;
`

export const TopicItem = styled.div`
  float: left;
  background: #f7f7f7;
  height: 32px;
  line-height: 32px;
  font-size: 14px;
  color: #000;
  border: 1px solid #dcdcdc;
  overflow: hidden;
  padding-right: 8px;
  margin-bottom: 18px;
  margin-left: 18px;
  .topic-pic{
    display: block;
    float: left;
    width: 32px;
    height: 32px;
    margin-right: 10px;
  }
`
export const MoreTopic = styled.div`
  color: #969696;
  font-size: 15px;

`

export const ListItem = styled.div`
  padding: 20px 0;
  border-bottom: 1px solid #dcdcdc;
  overflow: hidden;
  .pic{
    width: 125px;
    height: 100px;
    display: block;
    float:right;
    border-radius: 10px;
  }
  .title{
    font-size: 18px;
    line-height: 27px;
    font-weight: bold;
    color: #333;
  }
  .desc{
    font-size: 13px;
    line-height: 18px;
    color: #999;
  }
`

export const ListInfo = styled.div`
  width: 500px;
  float: right;
`

export const WriterItem = styled.div`
  overflow: hidden;
  margin-top: 15px;
  .avatar{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #ddd;
    float: left;
    margin-right: 10px;
  }
  .nickname{
    padding-top: 5px;
    margin-right: 60px;
    font-size: 14px;
    display: block;
    color: #333;
  }
  .desc{
    margin-top: 2px;
    font-size: 12px;
    color: #969696;
  }
`

export const RecommendItem = styled.div`
  width: 100%;
  height: 50px;
  margin-bottom: 6px;
  border-radius: 4px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("${(props) => props.imgUrl}");
`

export const LoadMore = styled.div`
  width: 96%;
  margin: 30px auto 60px;
  background: #A5A5A5;
  border-radius: 20px;
  line-height: 40px;
  height: 40px;
  color: #fff;
  text-align: center;
  display: block;
  
`
export const BackTop = styled.div`
  position: fixed;
  width: 60px;
  height: 60px;
  line-height: 30px;
  text-align:center;
  border: 1px solid #ccc;
  right:100px;
  bottom: 100px;
  font-size: 14px;
`